package com.sun.dailyprj.designpatterns.chain;

public class TestChain{

    public static void main(String[] args) {
        NotifyToast notify = new NotifyToast("notify");
        DisclaimerToast disclaimer = new DisclaimerToast("disclaimer");
        ScheduleToast schedule = new ScheduleToast("schedule");

        notify.setNextInterceptChain(disclaimer);
        disclaimer.setNextInterceptChain(schedule);

        notify.ignore();
//        notify.check();

    }
}
